package com.kgc.sbt.api;

import com.kgc.sbt.domain.Goods;

/**
 * @author Shan
 * @date 2021/6/22
 * @return
 * @description 商品api
 */

public interface GoodsApi {

    //根据商品ID查询商品详情
    Goods queryGoodsById(Integer id);

    /**
     * Created with IntelliJ IDEA.
     * @Author: tianzw
     * @Description: 上架下架商品
     */
    boolean putGoodsById(Integer id);

    boolean pullGoodsById(Integer id);

    boolean putStockById(Integer id,Integer stockNumber);

    boolean pullStockById(Integer id,Integer stockNumber);


}
